import {
    Cell,
    CellGroup,
    List,
    Swipe,
    SwipeItem,
    Badge,
    Popup,
    Slider,
    Loading
} from 'vant'

const components = [
    Cell,
    CellGroup,
    List,
    Swipe,
    SwipeItem,
    Badge,
    Popup,
    Slider,
    Loading
]

export default {
    install (app) {
        components.map(component => {
            app.component(component.name, component)
        })
    }
}
